<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精灵图</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div{
            width: 103px;
            height: 32px;
            float: left;
            background: url("img/bg.png") no-repeat;
            margin: 10px;
        }
        .box1{
            background-position: -203px 0px;
        }
        .box2{
            background-position: -203px -36px;
        }
        .box3{
            background-position: -203px -72px;
        }
        .box4{
            background-position: -203px -108px;
        }
        .box5{
            background-position: -203px -144px;
        }
        .box6{
            background-position: -203px -180px;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <div class="box4"></div>
    <div class="box5"></div>
    <div class="box6"></div>
</body>
</html>